#include "GeomEllipsoid.h"

// Transform the ellpsoid by the inverse of Matrix
GeomObject* GeomEllipsoid::getObjApplyInvTransform(const Mat4d &_mat){ 
	printf("Error in line %d in file %s: Not Yet Implemented!\n", __LINE__, __FILE__);
	return new GeomEllipsoid(mRadii);
}

#define TESSELATION 16

void GeomEllipsoid::draw(Vec4d _color, bool _default){
	Vec4d col = _default? mColor : _color;
	glColor4dv( col.Ref() );
	glPushMatrix();
	getGLTransform();
	glMultMatrixd(mGLTransMat);
	glScalef(mRadii[0], mRadii[1], mRadii[2]);
//	glutSolidSphere(1.0, TESSELATION, TESSELATION);
	glPopMatrix();
}
